import axios from '@/libs/request/axios'
let prefix = "/jobadmin"

export function getLogsList(params) {
  return axios.request({
    url: prefix + '/joblog/pageList',
    method: 'post',
    params: params
  })
}

export function stopJob(id) {
  return axios.request({
    url: prefix + '/joblog/logKill',
    method: 'post',
    params: {id: id}
  })
}

export function clearLogs(params) {
  return axios.request({
    url: prefix + '/joblog/clearLog',
    method: 'post',
    params: params
  })
}
